package top.jybill.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.List;

/**
 * 角色
 *      : 用户 more : more
 *      : 权限 more : more
 */
@JsonIgnoreProperties(value = { "handler" })
public class Role implements Serializable {
  private String id;
  private String roleName;
  private String roleDesc;
  private List<Permission> permissions;
  private List<MyUser> myUsers;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public String getRoleDesc() {
    return roleDesc;
  }

  public void setRoleDesc(String roleDesc) {
    this.roleDesc = roleDesc;
  }

  public List<Permission> getPermissions() {
    return permissions;
  }

  public void setPermissions(List<Permission> permissions) {
    this.permissions = permissions;
  }

  public List<MyUser> getMyUsers() {
    return myUsers;
  }

  public void setMyUsers(List<MyUser> myUsers) {
    this.myUsers = myUsers;
  }

  @Override
  public String toString() {
    return "Role{" +
            "id='" + id + '\'' +
            ", roleName='" + roleName + '\'' +
            ", roleDesc='" + roleDesc + '\'' +
            ", permissions=" + permissions +
            ", myUsers=" + myUsers +
            '}';
  }
}
